﻿namespace SyncService.Model
{

    public class ActiveAssetResponse
    {
        /// <summary>
        /// 店铺代码
        /// </summary>
        public string? StoreCode { get; set; }
        /// <summary>
        /// 资产类型
        /// 1 = 资讯资产,2 = 行政资产，行政长摊,3 = 工程长摊
        /// </summary>
        public int AssetType { get; set; }
    }
    public class customRequest
    {
        public bool Success { get; set; }
        public int Count { get; set; }
        public string Message { get; set; }
        public List<ActiveAssetRequest> Data { get; set; }
    }
    public class ActiveAssetRequest
    {
        /// <summary>
        /// 资产编码
        /// </summary>
        public string? BarCode { get; set; }
        /// <summary>
        /// 资产名称
        /// </summary>
        public string? AssetName { get; set; }

        public static implicit operator List<object>(ActiveAssetRequest v)
        {
            throw new NotImplementedException();
        }
    }

    public enum AssetState
    {
        在用 = 1,
        闲置 = 2,
        借用 = 3,
        报废 = 4,
        调拨中 = 5,
        领用在用 = 6,
        维修中 = 7,
        草稿 = 8
        //InUse = 1, Idle = 2, OnLoan = 3, Scrapped = 4, Allocating = 5, Received = 6, Maintaining = 7
    }
}
